package trlygjj.tanruiliyigenjinjin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
@ToString
public class PotentialCustomer {

    //在客户资源池中
    public static final int INPOOL_STATE=1;
    //不在客户资源池中
    public static final int OUTPOOL_STATE=0;

    //考试已通过
    public static final int FAIL_THE_TEST=0;
    //考试未通过
    public static final int PASS_THE_TEST=1;

    //不需要考试
    public static final  int UNNEED_TEST=0;
    //需要考试
    public static  final int NEED_TEST=1;

    //普通客户
    public static final int UNPOSITIVED_COSTOMER=0;
    //正式学员
    public static final int POSITIVED_COSTOMER=1;
    //客户id
    private Long id;
    //建档时间
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date documentDate;
    //录入时间
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date inputTime;
    //客户名字
    private String name;
    //电话
    private String tell;
    //邮箱
    private String email;
    //大客户学校
    private BigClient schoolCustomer;
    //大学入学时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date collegeAdmissionDate;
    //工作年限
    private Integer workSeniority;
    //意向程度
    private DataDictionaryItem interestDegree;
    //付款状态
    private int paymentState;
    //营销人员
    private Employee marketer;
    //意向校区
    private DataDictionaryItem interestCampu;
    //微信
    private String wechat;
    //客户年龄
    private Integer age;
    //客户地址
    private String address;
    //学历
    private DataDictionaryItem education;
    //专业
    private String professional;
    //介绍人
    private Employee introducer;
    //意向学科
    private CurriculumSeries interestSubject;
    //当前联系的形式
    private int currentState;
    //录入人
    private Employee inputUser;
    // 客户来源
    private DataDictionaryItem customerSource;
    //qq
    private String qq;
    //性别
    private int gender;
    //大学的毕业学校
    private String school;
    //地域
    private DataDictionaryItem regional;
    //大学班级
    private String universityClass;
    //意向班级
    private Grade interestClass;
    //来访时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date interviewDate;
    //是否携带电脑
    private Boolean computerCarry;
    //跟踪人
    private Employee follower;
    //跟踪次数
    private int followTims;
    //最后一次的跟踪时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date lastFollowDate;
    //备注
    private String remark;
    //客户的关注点
    private String customerFocus;
    //客户状态
    private int state=UNPOSITIVED_COSTOMER;
    //是否在资源池
    private int  inpoolState=OUTPOOL_STATE;
    //考试结果
    private int testResult;
    //考试处理人
    private Employee testHandler;
    //考试类型
    private DataDictionaryItem testType;
    //考试时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone ="GMT+8", pattern = "yyyy-MM-dd")
    private Date testDate;
    //考试备注
    private String testNode;
    //是否需要考试
    private int needTest;
}